<?php $this->pageTitle = 'Новое обсуждение'; ?>
<?php
/* @var $this GroupsController */
/* @var $model Groups */
/* @var $form CActiveForm */
?>
<div class="u_cat also clearfix">
	<div class="u_cat_head_strip"></div>
	<div class="u_cat_head">
		<span>Добавить обсуждение</span>
	</div>
	<div class="cat_head">
		<div class="cat_head_strip"></div>
		<div class="cat_head_h t">
			<a class="cat_head_h_edit" href="<?php echo Yii::app()->createUrl('groups/view',array('group'=>$_GET['group']));?>">назад</a>
		</div>
	</div>
	
	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'groups-form',
		'enableAjaxValidation'=>false,
		'htmlOptions'=>array('rel' =>Yii::app()->createUrl('groupsDiscussion/index', array('group'=>Yii::app()->request->getParam('group')))),
	)); ?>
		
		<?php echo $form->errorSummary($model); ?>
	
		
		<table class="flds_form">
			<tr>
				<td class="flds_form_l">
					<?php echo $form->labelEx($model,'name'); ?>
				</td>
				<td class="flds_form_r">
					<div class="flds_border">
						<div class="flds_border_inside">
							<?php echo $form->textField($model,'name',array('class'=>'settings_fld')); ?>
						</div>
						<?php echo $form->error($model,'name'); ?>
					</div>
				</td>
			</tr>
			<tr>
				<td class="flds_form_l">
					<?php echo $form->labelEx($model,'text'); ?>
				</td>
				<td class="flds_form_r">
					<div class="flds_border">
						<div class="flds_border_inside">
							<?php echo $form->textArea($model,'text',array('class'=>'settings_fld','rows'=>6, 'cols'=>50)); ?>
						</div>
						<?php echo $form->error($model,'text'); ?>
					</div>
				</td>
			</tr>
			
			
		</table>
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Добавить обсуждение' : 'Сохранить изменения', array('class'=>'green_btn tac')); ?>
	<?php $this->endWidget(); ?>
</div>
